import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/user-manage',
  component: Layout,
  redirect: '/user-manage/index',
  name: 'userManage',
  meta: {
    title: '用户管理',
    icon: 'user-gear',
  },
  children: [
    {
      path: 'index',
      name: 'userManageIndex',
      component: () => import('@/views/user-manage/index.vue'),
      meta: {
        sidebar: false,
        title: '用户管理',
        activeMenu: '/user-manage',
        breadcrumb: false,
      },
    },
  ],
}

export default routes
